﻿using System.Configuration;
using System.Reflection;
using IDAL;

namespace DALFactory
{
    public class DataAccess
    {
        public static IUser createUser()
        {
            string webdal = ConfigurationManager.AppSettings["WebDAL"];
            string className = webdal + ".SQLDal";
            return (IDAL.IUser)Assembly.Load(webdal).CreateInstance(className);
        }
    }
}
